-- GENERATED SPELL FOR [Kvaldir Mistweaver] --


function spell0_25479(pUnit, Event) --@Call of the Mist,Self--
pUnit:FullCastSpellOnTarget(45658,pUnit)
pUnit:RegisterEvent('Sorts_25479', 565, 1)
end

function spell1_25479(pUnit, Event) --@Mist of Strangulation,n/a--
pUnit:FullCastSpellOnTarget(49816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25479', 12000, 1)
end

function Sorts_25479(pUnit, Event)
local choix_sorts_25479 = math.random(0, 1)
if choix_sorts_25479 == 0 then
pUnit:RegisterEvent('spell0_25479', 1, 1)
end
if choix_sorts_25479 == 1 then
pUnit:RegisterEvent('spell1_25479', 1, 1)
end
end

function mob25479_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25479', math.random(1500, 3000), 1)
end

function mob25479_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25479_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25479_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25479, 1, 'mob25479_Action')
RegisterUnitEvent(25479, 2, 'mob25479_Leave')
RegisterUnitEvent(25479, 3, 'mob25479_Kill')
RegisterUnitEvent(25479, 4, 'mob25479_Die')
